Exact XML Type Checking in Polynomial Time
نویسندگان
چکیده
Stay macro tree transducers (smtts) are an expressive formalism for reasoning about XSLT-like document transformations. Here, we consider the exact type checking problem for smtts. While the problem is decidable, the involved technique of inverse type inference is known to have exponential worst-case complexity (already for top-down transformations without parameters). We present a new adaptive type checking algorithm based on forward type inference through exact characterizations of output languages. The new algorithm correctly typechecks all call-by-value smtts. Given that the output type is specified by a deterministic automaton, the algorithm is polynomial-time whenever the transducer uses only few parameters and visits every input node only constantly often. Our new approach can also be generalized from smtts to stay macro forest transducers which additionally support concatenation as built-in output operation.
منابع مشابه
On Subtyping of Tree-Structured Data: A Polynomial Approach
This paper discusses subtyping of tree-structured data encountered on the Web, e.g. XML and HTML data. Our long range objective is to define a type system for Web and/or Semantic Web query languages amenable to static type checking. We propose a type formalism motivated by XML Schema and accommodating two concepts of subtyping: inclusion subtyping (corresponding to XML Schema notion of type res...
متن کاملType checking XML transformations
XML documents are often generated by some application in order to be processed by a another program. For a correct exchange of information it has to be guaranteed that for correct inputs only correct outputs are produced. The shape of correct documents, i.e., their type, is usually specified by means of schema languages. This thesis is concerned with methods for statically guaranteeing that tra...
متن کاملDistributed Script - A Mobile Application for Multi-hop Ad-hoc Networks
Nr. 08 06 H. Fernau Parameterized Algorithms for d-HITTING Set: the Weightes Case http://www.mathematik.uni-trier.de/tf/08_06.pdf Nr. 08 05 H. Fernau, D. Raible Exact Algorithms for Maximum Acyclic Subgraph on a Superclass of Cubic Graphs http://www.mathematik.uni-trier.de/tf/08_05.pdf Nr. 08 04 R. Tichatschke Auf den Schultern von Giganten: Zur Geschichte der Mathematischen Optimierung http://...
متن کاملChecking determinism of XML Schema content models in optimal time
We consider the determinism checking of XML Schema content models, as required by the W3C Recommendation. We argue that currently applied solutions have flaws and make processors vulnerable to exponential resource needs by pathological schemas, and we help to eliminate this potential vulnerability of XML Schema based systems. XML Schema content models are essentially regular expressions extende...
متن کاملThe Design Space of Type Checkers for XML Transformation Languages
We survey work on statically type checking XML transformations, covering a wide range of notations and ambitions. The concept of type may vary from idealizations of DTD to full-blown XML Schema or even more expressive formalisms. The notion of transformation may vary from clean and simple transductions to domain-specific languages or integration of XML in general-purpose programming languages. ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Universität Trier, Mathematik/Informatik, Forschungsbericht
دوره 06-04 شماره
صفحات -
تاریخ انتشار 2006